﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DependencyPropertyTestDemo
{
    [TypeConverter(typeof(RangeTypeConverter))]
    public class Range
    {
        public int MinValue { get; set; }
        public int MaxValue { get; set; }

        public Range() { }
        public Range(int min, int max)
        {
            this.MinValue = min;
            this.MaxValue = max;
        }

        /// <summary>
        /// 重写ToString方法
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return $"{MinValue},{MaxValue}";
        }
    }
}
